package com.trade.service;

import java.util.List;

import com.trade.common.util.PaginationSupport;
import com.trade.model.Goods;

/**
 * 
 * 商品相关的业务类
 *
 * @author	chengpeng.zhang
 * @version           1.0
 * @since             2012-11-16
 */
public interface IGoodsService {
	/**
	 * 保存商品 
	 * @since  2013-1-27
	 * @author chengpeng.zhang
	 * @param goods
	 */
	public void save(Goods goods);
	
	/**
	 * 根据goods获取商品 
	 * @since  2013-1-27
	 * @author chengpeng.zhang
	 * @param goodsId
	 * @return
	 */
	public Goods getGoods(long goodsId);
	
	/**
	 * 获取一页商品 
	 * @since  2013-1-27
	 * @author chengpeng.zhang
	 * @param page
	 * @return
	 */
	public PaginationSupport getGoodsList(PaginationSupport page);
	
	public List<Goods> getAllGoods();
}
